#ifndef PATTERN_DIALOG_H
#define PATTERN_DIALOG_H

#include <QDialog>

class QLineEdit;
class QWidget;

class MusicSettings;

/*!
 * Boîte de dialogue pour configurer un motif de mélodie
 */
class PatternDialog: public QDialog {
  Q_OBJECT;

  public:
    PatternDialog(MusicSettings *, QWidget *parent = 0);

  private:
    MusicSettings *settings;

    QLineEdit *pattern;

    void initialize();

  private slots:
    void validate();

};

#endif
